package uk.ac.manchester.tewpl.iceiface.client;

import uk.ac.manchester.tewpl.iceiface.client.curriculummap.Map;
import uk.ac.manchester.tewpl.iceiface.client.explorer.Explorer;

import com.extjs.gxt.ui.client.data.BaseModelData;
import com.extjs.gxt.ui.client.store.GroupingStore;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.Window;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;

public class ExplorerWindow extends Window {
	
	private Explorer explorer;
	
	public ExplorerWindow() {
		// Configure window
		this.setSize(760,660);
		this.setMinWidth(760);
		this.setMinHeight(520);
		this.setMinimizable(false);
		this.setMaximizable(true);
		this.setHeading("Curriculum Explorer");
		this.setLayout(new FitLayout());
		
		// Create and add explorer widget
		explorer = new Explorer();
		this.add(explorer);
	}
	
	/*
	 * (non-Javadoc)
	 * @see com.extjs.gxt.ui.client.widget.Window#show()
	 */
	@Override
	public void show() {
		super.show();
		explorer.init();
	}

}
